package entity

type SupervisorOrder struct {
	Id           int64   `gorm:"column:id;primary_key" json:"id"`
	ConsultId    int64   `gorm:"column:consult_id;type:bigint;not null" json:"consult_id"`
	SupervisorId string  `gorm:"column:supervisor_id;type:varchar(128);not null" json:"supervisor_id"`
	Price        float64 `gorm:"column:price;type:bigint;not null" json:"price"`
	DeductCount  float64 `gorm:"column:deduct_count;type:bigint;not null" json:"deduct_count"`
	DeductReason string  `gorm:"column:deduct_reason;type:varchar(255);not null" json:"deduct_reason"`
	Status       int     `gorm:"column:status;type:tinyint(1);not null" json:"status"`
	CreatedAt    int64   `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt    int64   `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (s *SupervisorOrder) TableName() string {
	return "supervisor_order"
}
